//
//  SDP_ViewForAVPlayerWithUrl.h
//  SDP_AVMoviePlayer
//
//  Created by sp on 16/3/25.
//  Copyright © 2016年 sp. All rights reserved.
//

#import <UIKit/UIKit.h>


@class AVPlayer;
@class AVPlayerItem;

@interface SDP_ViewForAVPlayerWithUrl : UIView

@property (nonatomic, strong)UIButton *buttonForBack;
@property (nonatomic, strong)UIButton *buttonForNext;

@property (nonatomic, strong)AVPlayer *moviePlayer;
@property (nonatomic, strong)AVPlayerItem *moviePlayerItem;
// 播放
@property (nonatomic,strong)UIButton *buttonForPlay;
//
//+ (SDP_ViewForAVPlayerWithUrl *)shareVideoPlayerWithUrl:(NSString *)URL;

//- (instancetype)initWithFrame:(CGRect)frame URL:(NSURL *)url;

- (void)passPlayerItemOfUrl:(NSString *)stringForURL;
- (void)passMovieTitle: (NSString *)stringForMovieName;
+ (SDP_ViewForAVPlayerWithUrl *)shareVideoPlayer;
- (void)setDataArray:(NSArray *)arr;
@end
